exercise file handling In c question 10